// 'use strict';

function add(x, y, f) {
    return f(x) + f(y);
}
var x = add(-25, -16, Math.abs); // 11
console.log(x);


function s(x){
    return x*10;
}
var arr=[1,2,6,458,84,6,4,];
var newarr=arr.map(s);
console.log(newarr);


var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
arr.map(String); // ['1', '2', '3', '4', '5', '6', '7', '8', '9']log
console.log(arr.map(String))

var arr = [1, 3, 5, 7, 9];
var newarr=arr.reduce(function (x, y) {
    return x * 10 + y;
});
console.log(newarr)



var arr1='13579'
console.log(arr1.map(Number))